package com.hmall.vo;

import com.hmall.model.MallPrice;

import java.math.BigDecimal;
import java.util.List;

public class ShortCompete {

    int productId;

    String name;

    //没用
    BigDecimal price;

    boolean isNew;

    String grade;

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    List<MallPrice> comPrice;

    String unit;

    Integer stock;


    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public boolean isNew() {
        return isNew;
    }

    public void setNew(boolean aNew) {
        isNew = aNew;
    }


    public List<MallPrice> getComPrice() {
        return comPrice;
    }

    public void setComPrice(List<MallPrice> comPrice) {
        this.comPrice = comPrice;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public int getProductId() {
        return productId;
    }

    public void setProductId(int productId) {
        this.productId = productId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    @Override
    public String toString() {
        return "ShortCompete{" +
                "productId=" + productId +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", isNew=" + isNew +
                ", grade='" + grade + '\'' +
                ", comPrice=" + comPrice +
                ", unit='" + unit + '\'' +
                ", stock=" + stock +
                '}';
    }
}    //不通过product表，而是自身组合，复杂性太高，暂时不用
